filename=$(date +%Y%m%d%H%M%S)
server_path="/data1/app/"
meteor build --server-only --server="http://oforever.net" ~/workplace/meteor_output/${filename}
cp main.json ~/workplace/meteor_output/${filename}/
cp server_build.sh ~/workplace/meteor_output/${filename}/
cd ~/workplace/meteor_output
scp -r ${filename} myh:${server_path}
ssh myh "cd ${server_path}${filename};export PATH=$PATH:/root/.nvm/v0.10.46/bin;nvm use 4.5.0;/bin/bash ${server_path}${filename}/server_build.sh"